﻿using BaBaoFan.Modifier.Model;
using System;
using System.Collections.Generic;
using System.Text;

namespace BaBaoFan.Modifier.Service
{
    public interface INavigationRelationService
    {
        IEnumerable<NavigationRelation> GetNavigationRelations();
        bool Add(NavigationRelationEntity entity);
        bool Update(NavigationRelationEntity entity);
        NavigationRelationEntity GetById(int id);
        IEnumerable<NavigationRelation> GetByClassId(int id);
        bool Delete(int[] ids);
        bool AddNavigationInfoAndRelations(NavigationInfoEntity navigation, IEnumerable<NavigationRelationEntity> relationEntities);
        bool UpdateNavigationInfoAndRelations(NavigationInfoEntity navigation, IEnumerable<NavigationRelationEntity> relationEntities);
        IEnumerable<NavigationRelationEntity> GetByNavigationId(int id);
        IEnumerable<NavigationRelation> Search(RelationCondition condition);
    }
}
